//
//  NetRequest+ToolAPI.h
//  AppleMarket
//
//  Created by yangy on 24/10/2018.
//  Copyright © 2018 szgsy. All rights reserved.
//

#import "NetRequest.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetRequest (ToolAPI)


/**
 获取图形验证码

 @param type 验证码类型
 */
+ (void) request_imageCodeWithType:(NSString*) type
                   completeHandler:(void (^)(id responseObj)) completeHandler
                              fail:(void (^)(NSError *error)) failHandler;

/**
 发送验证码

 @param type 验证码类型
 @param account 账号
 @param code 图形验证码
 @param key 图形验证码key
 */
+ (void) request_SendMsgCodeType:(NSString*) type
                         account:(NSString*) account
                            code:(NSString*) code
                             key:(NSString*) key
                   completeHandler:(void (^)(id responseObj)) completeHandler
                              fail:(void (^)(NSError *error)) failHandler;

@end

NS_ASSUME_NONNULL_END
